<%--
  Created by IntelliJ IDEA.
  User: 谢兴鑫
  Date: 2022/5/25
  Time: 上午 08:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui/css/layui.css"/>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/layui/layui.js"></script>
</head>
<body>
<table class="layui-table">
    <colgroup>
        <col width="150">
        <col width="200">
        <col>
    </colgroup>
    <thead>
    <tr>
        <th>标题</th>
        <th>时间</th>
        <th>状态</th>
        <th>姓名</th>
    </tr>
    </thead>
    <c:forEach items="${overlist}" var="o">
    <tbody>
    <tr>
        <td>${o.title}</td>
        <td>${o.noticeTime}</td>
        <c:if test="${o.isRead == 1}">
            <td>已读</td>
        </c:if>
        <c:if test="${o.isRead == 2}">
            <td>未读</td>
        </c:if>
        <c:if test="${o.empName == '' || o.empName ==null}">
        <td>${o.stuname}</td>
        </c:if>
        <c:if test="${o.empName != '' || o.empName !=null}">
        <td>${o.empName}</td>
        </c:if>
    </tr>
    </tbody>
    </c:forEach>
</table>
</body>
</html>
